export function reducerCreator(initialState,handlers){
	return function reducer(state=initialState,action={}){
		if (handlers.hasOwnProperty(action.type)) {
			return handlers[action.type](state,action)
		}else{
			return state
		}
	}
} 
export function actionCreator(type,...argNames){
	return function(...args){
		let action={type};
		argNames.forEach((arg,index)=>{

			action[argNames[index]]=args[index];
		})
		return action
	}
}